<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Welcome extends BaseController {

	public function index() {
		if (isset($_SESSION['user'])) {
			$data = array('user' => $_SESSION['user']);
       		$this->master_view('welcome',$data);
		} else {
       		$this->master_view('welcome',array());
		}
	}
}

